package com.hyh.toyshopping.service;


import com.hyh.toyshopping.commons.CurUser;
import com.hyh.toyshopping.exceptions.PasswordException;
import com.hyh.toyshopping.exceptions.UsernameNotFoundException;
import com.hyh.toyshopping.model.User;
import com.hyh.toyshopping.model.param.LoginParam;

import java.util.List;

/**
 * @version 1.0
 * @BelongsProject:IntelliJ IDEA
 * @BelongsPackage:com.hyh.myshopping.service
 * @Author:hyhWTX
 * @ClassName:UserService
 * @CreateTime:2022年-12月-06日 19:35
 * @Description: 用户类
 */
public interface UserService {
    /***
     * @Description: 用户登陆方法
     * @param loginParam
     * @return CurUser
     */

    CurUser login(LoginParam loginParam) throws UsernameNotFoundException, PasswordException;
    /***
     * @Description: 用户注册
     * @param user
     */

    void addUser(User user);

    List<User> getUserList();

    void updateStatus(int user_id, int user_status);

    void changePasswordByUserName(String username,String userpassword);

}
